<style lang='scss' type='stylesheet/scss' scoped>
.as-button {
  margin-bottom: 10px;
}
</style>
<template>
  <div>
    <as-h2>theme</as-h2>
    <as-card :text="text"
             title="提供了 light 亮色 / dark 暗色 两种主题">
      <as-popover title="提示" content="这是默认亮色主题">
        <as-button>亮色主题</as-button>
      </as-popover>
      <as-popover title="提示" content="这是暗色主题" theme="dark">
        <as-button>暗色主题</as-button>
      </as-popover>
    </as-card>
  </div>
</template>

<script type="text/ecmascript-6">
import { mapGetters } from "vuex";
export default {
  name: "",
  computed: {
    ...mapGetters(["isMobile"])
  },
  data() {
    return {
      text: `<template>
   <div>
     <as-popover title="提示" content="这是默认亮色主题">
       <as-button>亮色主题</as-button>
     </as-popover>
     <as-popover title="提示" content="这是暗色主题" theme="dark">
       <as-button>暗色主题</as-button>
     </as-popover>
   </div>
 </template>`
    };
  },
  methods: {}
};
</script>
